package com.bqkj.controller;

import com.bqkj.IService.IUserInfoService;
import com.bqkj.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by Administrator on 2017/6/28 0028.
 */
@RestController
public class UserInfoController {
    @Autowired
    IUserInfoService iUserInfoService;

    @RequestMapping(value = "/getAll",method = RequestMethod.GET)
    public List<UserInfo> getAll() {
        List<UserInfo> all = iUserInfoService.getAll();
        return all;
    }
}
